package com.suse.lhw.hms.exersiseserver.domin;

import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @ProjectName: health_manage_system
 * @Package: com.suse.lhw.hms.exersiseserver.domin
 * @ClassName: EUnit
 * @Description: java类作用描述
 * @Author: 李鸿炜
 * @CreateDate: 2020/5/6 0:23
 * @UpdateUser: 更新者
 * @UpdateDate: 2020/5/6 0:23
 * @UpdateRemark: 更新说明
 * @Version: 1.0
 */
@Data
@NoArgsConstructor
public class EUnit {
    private Integer id;

    /**
     * 单位名称
     */
    private String unitName;

    /**
     * 每单位消耗的卡路里
     */
    private Integer consumCalories;

    public EUnit(Integer id, String unitName, Integer consumCalories) {
        this.id = id;
        this.unitName = unitName;
        this.consumCalories = consumCalories;
    }

    public EUnit(String unitName, Integer consumCalories) {
        this.unitName = unitName;
        this.consumCalories = consumCalories;
    }
}